package com.prj.ufdm.cloud.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

@SpringBootApplication
@EnableFeignClients
public class UfdmFeignApplication implements EnvironmentAware {

	private static Environment env;
	
	@Override
	public void setEnvironment(Environment environment) {
		env = environment;
	}
	
	public static void main(String[] args) {
		
		SpringApplication.run(UfdmFeignApplication.class, args);
        
        System.out.println("\n UfdmFeignApplication  "+ env.getProperty("server.port") +" 启动成功................");
    }

}
